@import '../variables/default.scss';
@import '../mixins/index.scss';

.at-popover-item {
  height: $at-popover-item-height;
  padding: 0 $spacing-h-md;

  &-container {
    display: flex;
    height: 100%;
    padding: 0 $spacing-h-md;
    justify-content: start;
    align-items: center;
    border-top: $border-width-sm solid $color-border-grey;
  }

  &:first-child .at-popover-item-container {
    border-top: 0;
  }

  &-content {
    font-size: $font-size-base;
    margin-left: 6px * $hd;
    white-space: nowrap;
  }

  &.disabled {
    .at-popover-item-container {
      color: $color-text-disabled;
    }
  }

  &.active {
    background-color: $color-bg-tap;
  }
}

/* stylelint-disable */

/* 微信小程序端dom结构特殊 */
at-popover-item {
  view.at-popover-item-container {
    border-top: $border-width-sm solid $color-border-grey !important;
  }

  &:first-child view.at-popover-item-container {
    border-top: 0 !important;
  }
}
/* stylelint-enable */
